<?php 
/**
 * $Id: default.php 4 2010-10-07 14:41:28Z ahmtsari $
 * Disclaimer view for BF Auction Component
 *
 * @package    Joomla
 * @subpackage Components
 * @link http://www.tamlyncreative.com.au/software
 * @copyright	Copyright (c) 2010 - Tamlyn Creative Pty Ltd.
 * @license		GNU GPL
 *
 *	  BF Auction is free software: you can redistribute it and/or modify
 *    it under the terms of the GNU General Public License as published by
 *    the Free Software Foundation, either version 3 of the License, or
 *    (at your option) any later version.
 *
 *    BF Auction is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU General Public License for more details.
 *
 *    You should have received a copy of the GNU General Public License
 *    along with BF Auction.  If not, see <http://www.gnu.org/licenses/>.
 *
 *
 * Author's notes: When GNU speaks of free software, it is referring to freedom, not price.
 * We encourage you to purchase your copy of BF Auction from the developer (Tamlyn Creative Pty Ltd),
 * so that we can continue to make this product better and continue to provide a high quality of support.
 *
 */

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die();
?>

<?php 
$Itemid = JRequest::getVar('Itemid');
$menu =& JMenu::getInstance('site');
$config = & $menu->getParams( $Itemid );

$showDisclaimer = $config->get( 'showDisclaimer' );
$disclaimerText = $config->get( 'disclaimerText' );

if($showDisclaimer){
   echo $disclaimerText;
}else{
	$redirectURL = "index.php?option=com_bfauction&task=listItems";
	$msg = "";
	global $mainframe;
	$mainframe->redirect( JRoute::_($redirectURL, false), $msg );
}

?>
<form method="post" name="adminForm">
<input type="hidden" name="option" value="com_bfauction" />
<input type="hidden" name="task" value="listItems" />
				
<input name="Submit" type="submit" id="Submit" value="<?php echo JText::_( 'Go to Auction Site' ); ?>" />
</form>

<!-- don't remove the following 7 lines if you didn't purchase BF Auction. Purchased version BF Auction Pro has no restrictions. -->
	<br>
	<table width="100%">
	<tr>
	<td><?php echo JText::_('Powered by'); ?> <a href="http://www.tamlyncreative.com.au/software/" target="_blank">BF Auction</a></td>
	<td><a href="http://www.tamlyncreative.com.au/software/" target="_blank"><img src="./components/com_bfauction/images/bftick.jpg" height="42" align="right" border="0" ></a></td>
	</tr>
	</table>